home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Updates / Hardware / FreeWheel / GUI.h < prev    next >
C/C++ Source or Header  |  2000-03-12  |  1KB  |  34 lines

  1.  
  2. struct GUIContext
  3. {
  4.   void (*Dispose)(struct GUIContext *gui);
  5.   void (*Attach)(struct GUIContext *gui,struct Window *win);
  6.   int BorderTop,BorderLeft;
  7.   int BorderRight,BorderBottom;
  8.   int InnerWidth,InnerHeight;
  9.   int TabStop;
  10.   void *VisualInfo;
  11.   struct Gadget *ContextGadget,*LastGadget;
  12.   struct Window *Window;
  13.   int BackgroundPen,ShinePen,ShadowPen,FillPen;
  14.   struct Screen *Screen;
  15.   struct TextAttr *TextAttr;
  16.   ULONG IDCMP;
  17. };
  18.  
  19. struct GUIContext *GUI_Create(struct Screen *screen,struct TextAttr *ta,int initwidth,int initheight);
  20.  
  21. struct Gadget *GUI_BuildButton(struct GUIContext *gui,char *text,long id);
  22. struct Gadget *GUI_BuildWideButton(struct GUIContext *gui,char *text,long id);
  23. struct Gadget *GUI_BuildText(struct GUIContext *gui,char *text);
  24. struct Gadget *GUI_BuildCheckBox(struct GUIContext *gui,char *text,long id);
  25. struct Gadget *GUI_BuildSlider(struct GUIContext *gui,char *text,int min,int max,int level,long id);
  26. struct Gadget *GUI_BuildSliderFormatted(struct GUIContext *gui,char *text,int min,int max,int level,long id);
  27. struct Gadget *GUI_BuildCycleGadget(struct GUIContext *gui,char *text,char **options,long id);
  28. struct Gadget *GUI_BuildString(struct GUIContext *gui,char *text,int len,long id);
  29. struct Gadget *GUI_BuildInteger(struct GUIContext *gui,char *text,int len,long id);
  30.  
  31. int GUI_MaxStringWidth(struct GUIContext *gui,char **strings);
  32. void GUI_StringTab(struct GUIContext *gui,char **text);
  33.  
  34.